-- GENERATED SPELL FOR [Haldarr Trickster] --


function spell0_6126(pUnit, Event) --@Curse of Mending,n/a--
pUnit:FullCastSpellOnTarget(7098,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_6126', 2000, 1)
end

function Sorts_6126(pUnit, Event)
local choix_sorts_6126 = math.random(0, 0)
if choix_sorts_6126 == 0 then
pUnit:RegisterEvent('spell0_6126', 1, 1)
end
end

function mob6126_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_6126', math.random(1500, 3000), 1)
end

function mob6126_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob6126_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob6126_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(6126, 1, 'mob6126_Action')
RegisterUnitEvent(6126, 2, 'mob6126_Leave')
RegisterUnitEvent(6126, 3, 'mob6126_Kill')
RegisterUnitEvent(6126, 4, 'mob6126_Die')
